<template>
    <div>
        <el-table :data="store.getters['goods/getGoodsList']" border style="width: 100%" ref="menuRef">
            <el-table-column prop="id" label="规格编号" width="180" />
            <el-table-column prop="title" label="规格名称" width="180" />
            <el-table-column prop="pid" label="规格属性" />
            <el-table-column prop="status" label="状态">
                <template v-slot="item">
                    <div>
                        {{ item.row.status == 1 ? '启用' : '禁用' }}
                    </div>
                </template>
            </el-table-column>
            <el-table-column label="操作">
                <template v-slot="item">
                    <div>
                        <el-button type="primary" @click="edit(item.row.id)">编辑</el-button>
                        <el-button type="danger" @click="del(item.row.id)">删除</el-button>
                    </div>
                </template>
            </el-table-column>
        </el-table>
        <!-- 分页 -->
        <el-pagination background layout="prev, pager, next" :total="10" />
    </div>
</template>
<script lang='ts' setup>
import { useStore } from 'vuex';

let store = useStore();
// 编辑
const edit = (id: number)=>{

}

// 删除
const del = (id: number) => {

}
</script>
<style scoped lang='less'></style>